﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Coding4Fun.Phone.Controls;

namespace Phone.Framework.Controls
{
    public class Prompt
    {
        public static MessagePrompt Show(string title, object content)
        {
            var messagePrompt = new MessagePrompt
            {
                Title = title,
                Overlay = new SolidColorBrush(Colors.Gray) { Opacity = 0.5 }
            };
            
            messagePrompt.Body = content;
            messagePrompt.Show();

            return messagePrompt;
        }
    }
}
